/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package inovacao.gui;

import java.awt.Component;
import javax.swing.JSplitPane;

/**
 *
 * @author Giovani
 */
public class PainelDividido extends JSplitPane {

    public PainelDividido() {
        super();
        this.setOrientation(JSplitPane.VERTICAL_SPLIT);
        this.setOneTouchExpandable(true);
        this.setDividerLocation(150);
    }

    public void addPaineis(Component painelUm, Component painelDois) {
        this.setRightComponent(painelUm);
        this.setLeftComponent(painelDois);
    }
}
